package com.firefly.admin.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.firefly.admin.common.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "FyBatchOperationResult", description = "系统批量操作结果表")
public class FyBatchOperationResult<T> extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "批量ID，主键")
    private Long batchId;

    @ApiModelProperty(value = "模块", notes = "BatchOperationModuleEnum枚举信息")
    private String module;

    @ApiModelProperty(value = "所属文件编号，唯一标识")
    private String fileNumber;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "文件路径")
    private String filePath;

    @ApiModelProperty(value = "校验结果")
    private String verifyResult;

    @ApiModelProperty(value = "新增结果")
    private String saveResult;

    @ApiModelProperty(value = "文件行数据")
    @TableField(exist = false)
    private List<FyBatchOperationDetail<T>> excelData;
}
